#include <iostream>

#include <list>

using namespace std;

int main(int argc, const char *argv[])
{
    list<int> m_list;

    for (int i = 0; i < 100; i++) {
        m_list.push_back(i%10);
    }

    for (auto &i : m_list) 
        cout << i << endl;
    cout << endl;

    m_list.unique();
    for (auto &i : m_list) 
        cout << i << endl;
    cout << endl;
    return 0;
}
